package com.tjsinfo.tjsoa.workflow;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.tjsinfo.tjsoa.system.vo.TSystemUser;

/**
 * JbpmTaskinstance entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Taskinstance implements java.io.Serializable {

	// Fields

	private Long id;
	private TSystemUser tjsUser;
	private String class_;
	private Integer version;
	private String name;
	private String description;
	private String actorid;
	private Date create;
	private Date start;
	private Date end;
	private Date duedate;
	private Integer priority;
	private Short iscancelled;
	private Short issuspended;
	private Short isopen;
	private Short issignalling;
	private Short isblocking;
	private Long  procinst; 
	private Boolean issub;
	// Constructors

	public Boolean getIssub() {
		return issub;
	}

	public void setIssub(Boolean issub) {
		this.issub = issub;
	}

	public Long getProcinst() {
		return procinst;
	}

	public void setProcinst(Long procinst) {
		this.procinst = procinst;
	}

	public TSystemUser getTjsUser() {
		return tjsUser;
	}

	public void setTjsUser(TSystemUser tjsUser) {
		this.tjsUser = tjsUser;
	}

	/** default constructor */
	public Taskinstance() {
	}

	/** minimal constructor */
	public Taskinstance(Long id, String class_, Integer version) {
		this.id = id;
		this.class_ = class_;
		this.version = version;
	}

	/** full constructor */
	public Taskinstance(Long id,TSystemUser tjsUser, 
			String class_, Integer version, String name, String description,
			String actorid, Date create, Date start, Date end, Date duedate,
			Integer priority, Short iscancelled, Short issuspended,
			Short isopen, Short issignalling, Short isblocking, Set jbpmJobs,
			Set jbpmVariableinstances, Set jbpmTaskactorpools, Set jbpmLogs,
			Set jbpmComments) {
		this.id = id;
		this.tjsUser = tjsUser;
		this.class_ = class_;
		this.version = version;
		this.name = name;
		this.description = description;
		this.actorid = actorid;
		this.create = create;
		this.start = start;
		this.end = end;
		this.duedate = duedate;
		this.priority = priority;
		this.iscancelled = iscancelled;
		this.issuspended = issuspended;
		this.isopen = isopen;
		this.issignalling = issignalling;
		this.isblocking = isblocking;
		
		
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getClass_() {
		return this.class_;
	}

	public void setClass_(String class_) {
		this.class_ = class_;
	}

	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getActorid() {
		return this.actorid;
	}

	public void setActorid(String actorid) {
		this.actorid = actorid;
	}

	public Date getCreate() {
		return this.create;
	}

	public void setCreate(Date create) {
		this.create = create;
	}

	public Date getStart() {
		return this.start;
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public Date getEnd() {
		return this.end;
	}

	public void setEnd(Date end) {
		this.end = end;
	}

	public Date getDuedate() {
		return this.duedate;
	}

	public void setDuedate(Date duedate) {
		this.duedate = duedate;
	}

	public Integer getPriority() {
		return this.priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public Short getIscancelled() {
		return this.iscancelled;
	}

	public void setIscancelled(Short iscancelled) {
		this.iscancelled = iscancelled;
	}

	public Short getIssuspended() {
		return this.issuspended;
	}

	public void setIssuspended(Short issuspended) {
		this.issuspended = issuspended;
	}

	public Short getIsopen() {
		return this.isopen;
	}

	public void setIsopen(Short isopen) {
		this.isopen = isopen;
	}

	public Short getIssignalling() {
		return this.issignalling;
	}

	public void setIssignalling(Short issignalling) {
		this.issignalling = issignalling;
	}

	public Short getIsblocking() {
		return this.isblocking;
	}

	public void setIsblocking(Short isblocking) {
		this.isblocking = isblocking;
	}

}